<style>
    #menu-edit .layui-form-label{
        width: 90px;
    }
    #menu-edit .layui-input-block{
        margin-left: 120px;
    }
</style>
<div class="febs-container" id="menu-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="menu-edit-form">
            <div class="layui-form-item febs-hide">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">菜单/按钮ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="menuId" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">上级菜单ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="pid" autocomplete="off" class="layui-input"
                               maxlength="32" >
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label">上级菜单：</label>
                    <div class="layui-input-block">
<!--                        <input type="text" id="parentName" name="parentName" autocomplete="off" class="layui-input"-->
<!--                               maxlength="90" >-->
                        <input type="text" id="parentId" name="parentId" autocomplete="off" class="layui-input"
                               maxlength="90"  lay-filter="parentId">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">菜单名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="menuName" autocomplete="off" class="layui-input"
                               maxlength="90" placeholder="请输入菜单名称">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">菜单类型：</label>
                    <div class="layui-input-block">
                        <input type="radio" name="type" lay-filter="menu-type" value="0" checked title="菜单">
                        <input type="radio" name="type" lay-filter="menu-type" value="1" title="按钮">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">菜单链接：</label>
                    <div class="layui-input-block">
                        <input type="text" name="url" autocomplete="off" class="layui-input"
                               maxlength="255" placeholder="请输入菜单链接">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">菜单权限：</label>
                    <div class="layui-input-block">
                        <input type="text" name="perms" autocomplete="off" class="layui-input"
                               maxlength="255" placeholder="请输入菜单权限">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">菜单图标：</label>
                    <div class="layui-input-block">
                        <input type="text" name="icon" autocomplete="off" class="layui-input"
                               maxlength="255" placeholder="请选择菜单图标">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">菜单排序：</label>
                    <div class="layui-input-block">
                        <input type="text" name="orderNum" autocomplete="off" class="layui-input"
                               maxlength="4" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入菜单排序">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">菜单状态：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" checked>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">分配子公司：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="grantedSubsidiaryFlg" lay-skin="switch" lay-text="是|否">
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="menu-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var menuData = [[${menu}]];
</script>
<script th:src="@{/febs/js/system/menu/menuEdit.js(v=1)}"></script>